<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>异步加载提示框 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2 title="Ajax Tooltip">异步加载提示框</h2>
	<p title="The tooltip content can be loaded via AJAX.">　　提示框的内容可由 AJAX 加载而来（如下所示，源于 _content.html 文件）。</p>
	<div style="margin:20px 0;"></div>
	PC请将鼠标 <a href="#" class="easyui-tooltip" data-options="
			content: $('<div></div>'),
			onShow: function(){
				$(this).tooltip('arrow').css('left', 20);
				$(this).tooltip('tip').css('left', $(this).offset().left);
			},
			onUpdate: function(cc){
				cc.panel({
					width: 360,
					height: 'auto',
					border: false,
					href: '_content.html'
				});
			}
		">悬停</a> 即可呈现提示（通过异步方式加载的内容）。注：移动设备还得摁一下。
</body>
</html>